<template>
    <div>
      <!-- 顶部 -->
      <!-- <div class="header">静静保洁公司.vant</div> -->
      <top-nav></top-nav>
      <!-- 路由占位符 -->
      <router-view />
      <!-- 底部 -->
      <van-tabbar route v-model="active">
        <van-tabbar-item to="/home">
          <i slot="icon" class="iconfont icon-index-fill"></i>
          <span>首页</span>
        </van-tabbar-item>
        <van-tabbar-item to="/search" icon="search">搜索</van-tabbar-item>
        <van-tabbar-item to="/shopcar" icon="cart-o">购物车</van-tabbar-item>
        <van-tabbar-item to="/member" icon="setting-o">
          <i slot="icon" class="iconfont icon-icon_zhanghao"></i>
          <span>会员</span>
        </van-tabbar-item>
      </van-tabbar>
    </div>
</template>

<script>
import TopNav from './views/tabbar/TopNav.vue'

export default {
  data () {
    return {
      active: 0
    }
  },

  components: {
    TopNav
  },

  created () {

  },

  methods: {

  }
}
</script>

<style scoped lang='less'>
.header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: #1989fa;
  text-align: center;
  line-height: 40px;
  color: #fff;
  font-size: 14px;
  z-index: 999;
}
</style>
